package com.ruoyi.project.data.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class DrugAllSalesRecords extends BaseEntity {
    private int drugId;
    private String drugName;
    private  double allsalesAllmoney;
    private int allsalesNum;

    public DrugAllSalesRecords() {
    }

    public DrugAllSalesRecords(int drugId, String drugName, double allsalesAllmoney, int allsalesNum) {
        this.drugId = drugId;
        this.drugName = drugName;
        this.allsalesAllmoney = allsalesAllmoney;
        this.allsalesNum = allsalesNum;
    }

    public int getDrugId() {
        return drugId;
    }

    public void setDrugId(int drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public double getAllsalesAllmoney() {
        return allsalesAllmoney;
    }

    public void setAllsalesAllmoney(double allsalesAllmoney) {
        this.allsalesAllmoney = allsalesAllmoney;
    }

    public int getAllsalesNum() {
        return allsalesNum;
    }

    public void setAllsalesNum(int allsalesNum) {
        this.allsalesNum = allsalesNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof DrugAllSalesRecords)) return false;
        DrugAllSalesRecords that = (DrugAllSalesRecords) o;
        return drugId == that.drugId &&
                Double.compare(that.allsalesAllmoney, allsalesAllmoney) == 0 &&
                allsalesNum == that.allsalesNum &&
                Objects.equals(drugName, that.drugName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(drugId, drugName, allsalesAllmoney, allsalesNum);
    }

    @Override
    public String toString() {
        return "DrugAllSalesRecords{" +
                "drugId=" + drugId +
                ", drugName='" + drugName + '\'' +
                ", allsalesAllmoney=" + allsalesAllmoney +
                ", allsalesNum=" + allsalesNum +
                '}';
    }
}
